package com.pig4cloud.pigx.wxApi.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.annotation.Value;

import javax.validation.constraints.NotBlank;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "文件管理表")
public class BookExposureEntity extends Model<BookExposureEntity> {

	@Schema(description = "账号")
	@Value("${digitallibrary.username}")
	private String username = "123";
	@Schema(description = "密码")
	@Value("${digitallibrary.password}")
	private String password = "123";

	@NotBlank(message = "来源标识不能为空")
	private String fromSys = "1";

	@Schema(description = "图书大类")
	private String resourceType;

	@Schema(description = "产品id")
	private String productId;

	@Schema(description = "资源id")
	private String resourceId;

	@Schema(description = "中图法分类")
	private String bookTypeId;
}
